package com.yantong.pojo.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 小程序注册实体类
 * @author: juzi
 * @date: 2021/12/3
 * @time: 14:29
 */
@ApiModel(value = "小程序注册实体类")
@Data
public class UserInfoBo {

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @Pattern(regexp = "^[0-2]",message = "性别参数错误!")
    @ApiModelProperty(value = "性别")
    private String gender;

    @NotEmpty(message="手机号不能为空")
    @Pattern(regexp = "^1(?:3\\d|4[4-9]|5[0-35-9]|6[67]|7[013-8]|8\\d|9\\d)\\d{8}$",message = "手机号码格式有误!")
    @ApiModelProperty(value = "手机号")
    private String mobile;

    @NotEmpty(message="openId不能为空")
    @ApiModelProperty(value = "openId")
    private String openId;

    @NotNull(message="centreId不能为空")
    @ApiModelProperty(value = "centreId")
    private Long centreId;

    @NotNull(message="memberId不能为空")
    @ApiModelProperty(value = "memberId")
    private Long memberId;

    @ApiModelProperty(value = "推荐用户")
    private Long mid;


}
